var express = require('express');
var router = express.Router();


/*
 * @Author: 岸舟
 * @Date: 2020-09-18 17:55:04
 * @LastEditors: MiNine
 * @LastEditTime: 2020-09-27 12:18:44
 * @Description: 定义二级路径及方法名
 */

const {
  getItem,
  addItem,
  avatarAdd,
  delItem,
  modItem,
  getItems,
  getAllItems
} = require('../controllers/insureProductCon');

const {
  permission19,
  permission159
} = require('../utils/permissionVerify');

router.post('/getItem', getItem);
router.post('/getItems', getItems);
router.post('/avatarAdd', permission19, avatarAdd);
router.post('/addItem', permission19, addItem);
router.post('/delItem', permission19, delItem);
router.post('/modItem', permission19, modItem);
router.post('/getAllItems', getAllItems);



module.exports = router;